package com.ruoyi.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 读取项目相关配置
 *
 */
@Component
@ConfigurationProperties(prefix = "aliyun.sms")
public class SmsConfig {
    /** Access Key ID */
    private static String accessKeyId;

    /** Secret */
    private static String secret;

    /** Region ID */
    private static String regionId;

    /** Sign Name */
    private static String signName;

    /** Captcha Template Code */
    private static String captchaTemplateCode;

    // Getters and Setters
    public static String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        SmsConfig.accessKeyId = accessKeyId;
    }

    public static String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        SmsConfig.secret = secret;
    }

    public static String getRegionId() {
        return regionId;
    }

    public void setRegionId(String regionId) {
        SmsConfig.regionId = regionId;
    }

    public static String getSignName() {
        return signName;
    }

    public void setSignName(String signName) {
        SmsConfig.signName = signName;
    }

    public static String getCaptchaTemplateCode() {
        return captchaTemplateCode;
    }

    public void setCaptchaTemplateCode(String captchaTemplateCode) {
        SmsConfig.captchaTemplateCode = captchaTemplateCode;
    }
}
